//
//  InfiniteScrollCell.m
//  test
//
//  Created by 汤丹峰 on 16/7/21.
//  Copyright © 2016年 汤丹峰. All rights reserved.
//

#import "InfiniteScrollCell.h"
#import "UIImageView+WebCache.h"

@interface InfiniteScrollCell ()
@property (nonatomic, strong) UIImageView *imageView;
@end

@implementation InfiniteScrollCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
        imageView.contentMode = UIViewContentModeScaleAspectFill;
        imageView.userInteractionEnabled = YES;
        self.imageView = imageView;
        [self addSubview:imageView];
    }
    return self;
}
- (void)setImageView:(NSString *)imageURLString placeholderImage:(UIImage *)image
{
    [self.imageView sd_setImageWithURL:[MyTool URLWithImgStr:imageURLString] placeholderImage:image];
}

@end
